package com.rf.richfitwheel.common.utils;

import java.io.Serializable;

/**
 * @author hushouquan
 */
public class PageParameter<T> implements Serializable{
    /**
     * 第几页
     */
    private Integer page;
    
    /**
     * 每页第几条
     */
    private Integer limit;
    /**
     * 查询参数
     */
    private T dataForm;
    
    public Integer getPage(){
        return page;
    }
    
    public void setPage(Integer page){
        this.page = page;
    }
    
    public Integer getLimit(){
        return limit;
    }
    
    public void setLimit(Integer limit){
        this.limit = limit;
    }
    
    public T getDataForm(){
        return dataForm;
    }
    
    public void setDataForm(T dataForm){
        this.dataForm = dataForm;
    }
    
    @Override
    public String toString(){
        final StringBuilder sb = new StringBuilder("PageParame{");
        sb.append("page=").append(page);
        sb.append(", limit=").append(limit);
        sb.append(", dataForm=").append(dataForm);
        sb.append('}');
        return sb.toString();
    }
}
